package py.com.alfa.escriba.web.rest;

import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Response;

import py.com.alfa.escriba.exception.ServiceException;

@Path("/personasjuridicasinfo")
public interface PersonasjuridicasinfoRESTService {

  @Path("/all")
  @GET
  Response listAll() throws ServiceException;

  @Path("/{id}")
  @GET
  Response show(@PathParam("id") Long id) throws ServiceException;

  @Path("/update/{id}")
  @PUT
  Response save(@PathParam("id") Long id, String data ) throws ServiceException;

  @Path("/create")
  @POST
  Response create(String data) throws ServiceException;

  @Path("/delete/{id}")
  @DELETE
  Response delete(@PathParam("id") Long id) throws ServiceException;

}